/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_testpart_conditionCriteria extends AbstractORMCriteria {
    public final IntegerExpression id;
    public final StringExpression condition;

    public T_testpart_conditionCriteria(Criteria criteria) {
	super(criteria);
	id = new IntegerExpression("id", this);
	condition = new StringExpression("condition", this);
    }

    public T_testpart_conditionCriteria(PersistentSession session) {
	this(session.createCriteria(T_testpart_condition.class));
    }

    public T_testpart_conditionCriteria() throws PersistentException {
	this(org.testis.orm.manager.TestisDbPersistentManager.instance()
		.getSession());
    }

    public T_test_stepcontainerCriteria createContainerCriteria() {
	return new T_test_stepcontainerCriteria(createCriteria("Container"));
    }

    public T_test_teststepsCriteria createTestStepCriteria() {
	return new T_test_teststepsCriteria(createCriteria("TestStep"));
    }

    public T_test_dataobjectCriteria createDataObjectCriteria() {
	return new T_test_dataobjectCriteria(createCriteria("DataObject"));
    }

    public T_testpart_condition uniqueT_testpart_condition() {
	return (T_testpart_condition) super.uniqueResult();
    }

    public T_testpart_condition[] listT_testpart_condition() {
	java.util.List list = super.list();
	return (T_testpart_condition[]) list
		.toArray(new T_testpart_condition[list.size()]);
    }
}
